package cn.com.djin.ssm.entity;

import java.util.Date;

/**
 * 
 * @author djin
 *    订单评价表
 */
public class OrdersEvalaute extends BaseEntity {

	private static final long serialVersionUID = 1L;
	
	//id
	private Integer oeid;
	//评价内容
	private String oeContent;
	//价格打分
	private Integer oePrice;
	private String oeStrPrice;
	//服务打分
	private Integer oeServer;
	private String oeStrServer;
	//整体打分
	private Integer oeOverall;
	private String oeStrOverall;
	//评价时间
	private Date oeDate;
	
	public Integer getOeid() {
		return oeid;
	}
	public void setOeid(Integer oeid) {
		this.oeid = oeid;
	}
	public String getOeContent() {
		return oeContent;
	}
	public void setOeContent(String oeContent) {
		this.oeContent = oeContent;
	}
	public Integer getOePrice() {
		return oePrice;
	}
	public void setOePrice(Integer oePrice) {
		this.oePrice = oePrice;
	}
	public Integer getOeServer() {
		return oeServer;
	}
	public void setOeServer(Integer oeServer) {
		this.oeServer = oeServer;
	}
	public Integer getOeOverall() {
		return oeOverall;
	}
	public void setOeOverall(Integer oeOverall) {
		this.oeOverall = oeOverall;
	}
	public Date getOeDate() {
		return oeDate;
	}
	public void setOeDate(Date oeDate) {
		this.oeDate = oeDate;
	}
	public String getOeStrPrice() {
		if (this.oePrice == 1) {
			this.oeStrPrice = "很贵";
		} else if (this.oePrice == 2) {
			this.oeStrPrice = "贵";
		} else if (this.oePrice == 3) {
			this.oeStrPrice = "一般";
		} else if (this.oePrice == 4) {
			this.oeStrPrice = "实惠";
		} else {
			this.oeStrPrice = "很好";
		}
		return oeStrPrice;
	}
	public String getOeStrServer() {
		if (this.oeServer == 1) {
			this.oeStrServer = "非常差";
		} else if (this.oeServer == 2) {
			this.oeStrServer = "不满意";
		} else if (this.oeServer == 3) {
			this.oeStrServer = "一般";
		} else if (this.oeServer == 4) {
			this.oeStrServer = "满意";
		} else {
			this.oeStrServer = "很满意";
		}
		return oeStrServer;
	}
	public String getOeStrOverall() {
		if (this.oeOverall == 1) {
			this.oeStrOverall = "非常差";
		} else if (this.oeOverall == 2) {
			this.oeStrOverall = "差";
		} else if (this.oeOverall == 3) {
			this.oeStrOverall = "一般";
		} else if (this.oeOverall == 4) {
			this.oeStrOverall = "好";
		} else {
			this.oeStrOverall = "非常好";
		}
		return oeStrOverall;
	}
	public void setOeStrPrice(String oeStrPrice) {
		this.oeStrPrice = oeStrPrice;
	}
	public void setOeStrServer(String oeStrServer) {
		this.oeStrServer = oeStrServer;
	}
	public void setOeStrOverall(String oeStrOverall) {
		this.oeStrOverall = oeStrOverall;
	}
	@Override
	public String toString() {
		return "OrdersEvalaute [oeid=" + oeid + ", oeContent=" + oeContent + ", oePrice=" + oePrice + ", oeServer="
				+ oeServer + ", oeOverall=" + oeOverall + ", oeDate=" + oeDate + "]";
	}
	
}
